import { createStore } from 'vuex'

import * as actions from './actions'
import * as getters from './getters'
import state from './state'
import mutations from './mutations'

const debug = process.env.NODE_ENV !== 'production'

const store = createStore({
	state,
	mutations,
	actions,
	getters,
	strict: debug
})

export default store